This example explains how to set up a SOP Invoice layout so that you can email invoices to preferred customer contacts. You could use a similar approach for other sales order documents such as credit notes, quotations and pro formas.
This example explains how to:
Open: Report Designer > Report Designer.
Select the SOP Invoice layout that you want to use: File Explorer > Layouts
Enter your email options:
From the Email message should contain drop-down list, choose the group that matches the header section of the invoice layout.
In this example, for the SOP Invoice (Single ) layout, select Group 7 - SOPInvoiceCredits.SOPInvoiceCreditID.
To send your SOP invoices to the contact for each customer, click To...., and add the SL Customer Accounts > ContactEmailAddress expression.
In the Expressions section, click Add .
Drag the following from the Fields pane to the Expression Editor section:
SL Customer Accounts > ContactEmailAddress.
To copy this expression from a text file, click here.
If required, click CC... to enter the recipients for a copy of the email.
These can be entered as text or as an expression.
Enter a Subject for the email.
This can be entered as text or you can use an expression to include information such as your company name and the invoice number.
Click Subject.
Drag the following from the Fields Pane:
SYSCompanies > CompanyName.
In the Expression Editor, enter + "Invoice No:" +
Note: To add more than one expression use + or and. If you want to include text with an expression use "quotation marks" around the text.
Drag the following from the Fields pane:
SOPInvoiceCredits > DocumentNo.
The completed expression should be as follows:
SYSCompanies.CompanyName + " Invoice No:" + SOPInvoiceCredits.DocumentNo.
To copy this expression from a text file, click here.
Choose whether to send the invoices as plain text or as an attachment.
If you want to send the report as plain text, you may have to amend the layout to make it suitable for an email message, as the layout is designed for printed output.
Note: Some layouts contain text that is designed to be read by a 3rd party document management add on available for Sage 200. This text is not designed to be printed but will appear when the document is sent as plain text. You may want remove this if you are sending your emails as plain text.
Enter a Filename for the attachment.
You can use an expression for this if you want the filename to include information such as your company name and the invoice number.
Click Filename.
Drag the following from the Fields Pane:
SYSCompanies > CompanyName.
Drag the following from the Fields pane:
SOPInvoiceCredits > DocumentNo.
The completed expression should be as follows:
SYSCompanies.CompanyName + "Invoice No:" + SOPInvoiceCredits.DocumentNo.
Choose your email account provider.
Microsoft Outlook | Select this if you are using Microsoft Outlook 2003, 2007 or 2010. |
SMTP |
Select this if you send email using an SMTP provider such as Hotmail, Gmail or Yahoo Mail.
|
MAPI | Select this if your email application uses a MAPI (Outlook / Exchange) mail server. |
Note: You can set up a default email provider for all reports in Report Designer > Tools > Options | Email Setup.
To save the new invoice layout, select File > Save As.
Note: When you change a default layout, letter or report, you must save the new layout, letter or report in the custom or company folder.
Choose the role that your want to send your invoices to. You can use an existing role or set up a new customer role.
Open: ASM > Settings > Customer and Supplier Roles.
Associate this role with Sales Invoice document type.
Open: ASM > Settings > Customer and Supplier Document Types.
Set up a Preferred Contact for the role with a valid email address for each customer account that you want to send the invoices to.
Open: SL > Sales Accounts > Amend Account Details | Contacts.
Add the new invoice layout to the SOP module.
Open: SOP > SOP Maintenance > Maintain Invoice Layouts.
If required, associate this invoice layout with the relevant customer accounts.
This means that this invoice layout is automatically used when printing invoices for this customer. If required, you can specify the invoice layout that you want to use when you print your invoices.
Open: SL > Sales Accounts > Amend Accounts Details | Documents.
Examples
Set up purchase orders to send via email
Set up project invoices to send via email
Set up order acknowledgements to send via email
Set up despatch notes to send via email
Set up debtor letters to send via email
Other tasks
Overview